package cn.iocoder.yudao.module.exam.controller.admin.exam.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 考试管理 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ExamRespVO {

    @Schema(description = "考试ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "14509")
    @ExcelProperty("考试ID")
    private Long id;

    @Schema(description = "考试名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("考试名称")
    private String examName;

    @Schema(description = "考试类型", example = "2")
    @ExcelProperty("考试类型")
    private String examType;

    @Schema(description = "年级", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "年级", converter = DictConvert.class)
    @DictFormat("exam_grade") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String grade;

    @Schema(description = "学科", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "学科", converter = DictConvert.class)
    @DictFormat("exam_subject") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String subject;

    @Schema(description = "试卷总分")
    @ExcelProperty("试卷总分")
    private BigDecimal totalScore;

    @Schema(description = "答题卡类型", example = "2")
    @ExcelProperty("答题卡类型")
    private String answerCardType;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("状态")
    private Integer status;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}